Tests\Module\Checkout\CartServiceTest S

Total Complexity 38
Dependencies 13
Dependents 0
Total lines 655
Lines of code 557
Logical lines of code 225
Comment lines 3
Methods 28
Properties 6

Methods 28

Method Rating Maintainability Complexity Lines of code
cartContainsProductOversizedForCarrier()
A
35 1 135
testGetTaxClassWithMaxRateWithMultipleTaxClasses()
S
43 5 57
testGetTaxClassWithMaxRateWithMultipleTaxClassesNoRates()
S
47 5 39
testGetDisallowedShippingRateIdsCombined()
S
51 3 28
testGetBiggestProductSizeBySum()
S
48 1 38
testCartContainsProductOversizedForCarrier()
S
51 1 27
testGetTotalCartProductValue()
S
53 1 25
testGetTaxClassWithMaxRateWithSingleTaxableProduct()
S
58 1 16
testGetTaxClassWithMaxRateWithInvalidProduct()
S
60 1 15
testGetTaxClassWithMaxRateWithNoTaxableProduct()
S
59 1 15
createCartServiceMock()
S
61 1 14
testIsAgeVerificationRequiredWithoutVerification()
S
59 1 14
testIsAgeVerificationRequiredWithVerification()
S
59 1 14
testIsAgeVerificationRequiredWithNonPhysicalProduct()
S
60 1 13
testGetDisallowedShippingRateIdsWithNonPhysicalProduct()
S
60 1 13
testGetDisallowedShippingRateIdsWithPhysicalProduct()
S
60 1 13
testGetCartWeightKgWithEmptyCart()
S
67 1 8
testGetCartWeightKgWithProductsInCart()
S
66 1 8
testGetCartContentsTotalIncludingTaxWithNoTaxes()
S
70 1 6
testIsAgeVerificationRequiredWithoutWpLoaded()
S
73 1 5
testIsShippingRateRestrictedByProductsCategoryWithInvalidProduct()
S
70 1 6
testIsShippingRateRestrictedByProductsCategoryWithProductWithoutId()
S
75 1 4
testIsShippingRateRestrictedByProductsCategoryWithNoProductCategories()
S
72 1 5
testIsShippingRateRestrictedByProductsCategoryWithProductNotInCategories()
S
62 1 10
testIsShippingRateRestrictedByProductsCategoryWithProductInRestrictedCategories()
S
62 1 10
testGetCartWeightKgWithoutWpLoaded()
S
73 1 5
testGetCartWeightKgWithExceptionOnGetWeight()
S
67 1 8
testGetCartContentsTotalIncludingTaxWithTaxes()
S
70 1 6